<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=9" />
		
		<title><tiles:insertAttribute name="title" ignore="true" /></title>
		
		<link type="text/css" rel="stylesheet" href="<c:url value="/resources/main.css" />">
		<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
	
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
		<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

		<script type="text/javascript">
			$(document).ready(function(){
				//$('#error-div').show('slide', {direction: 'left'}, 1500);
			});
			
	  		(function() {
	    		var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
	    		po.src = 'https://apis.google.com/js/plusone.js';
	    		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
	  		})();
		</script>
		
		<script type="text/javascript">
		
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-32709379-1']);
		  _gaq.push(['_trackPageview']);
		
		  (function() {
		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		
		</script>

	</head>

	<body>
	
		<tiles:insertAttribute name="header" />

		<c:if test="${not empty error}">
			<div id="error-div" class="errorBox">
				<c:out value='${error}' />
			</div>
		</c:if>	
		<c:if test="${not empty message}">
			<div id="error-div" class="messageBox">
				<c:out value='${message}' />
			</div>
		</c:if>
		
		<div class="emptyContainer">
			<tiles:insertAttribute name="menu" />
		</div>

		<table align="center" width="81%">
			<tr>
				<td width="75%">
					<tiles:insertAttribute name="body" />
				</td>
				<td valign="top">
					<tiles:insertAttribute name="right" />
				</td>
			</tr>
		</table>
		
		<div align="center">
			<tiles:insertAttribute name="footer" />
		</div>
	</body>

</html>